package com.xiaofen.license.controller;

import com.xiaofen.license.service.CreateLicense;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 生成许可控制
 *
 * @author zhang
 * @createDate: 2021/1/22 11:14
 * @version:1.0
 * @updateUser:[修改人]
 * @updateDate:[修改时间]
 * @updateRemark:[修改备注]
 */
@RestController
public class CreateLicenseController {
    /**
     * 生成许可文件
     * */
    @Autowired
    private CreateLicense CreateLicense;


    @RequestMapping(value = "/createLic")
    public String createLic(){
        try {
            System.out.println("/createLic");
            String reData = CreateLicense.createLicense();

            return reData;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
